package cn.tedu.ivosbbb.base.exception;

import cn.tedu.ivosbbb.base.response.StatusCode;
import lombok.Getter;

public class ServiceException extends  RuntimeException{
    //自定义状态码为其属性
    @Getter
    private StatusCode statusCode;
    //3.添加构造方法
    public ServiceException(StatusCode statusCode){
        this.statusCode= statusCode;
    }
}
